#Prefix syntax
#	-Prefixes can be:
#		Server name
#		User info, which includes:
#			Nickname
#			Username, seperated from nikname by "!"
#			Hostname, seperated from username by "@"

def parse_prefix(message)
	unless message.include?("!") 
		server_name = message
		return {:server_name => server_name}
	end
	parts = message.split("!")
	nickname = parts[0]
	parts = parts[1].split("@")
	username = parts[0]
	hostname = parts[1]
	return {:nickname => nickname, :username => username, :hostname => hostname}
end